﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Customer_Info.aspx.cs" Inherits="TimKen.Web.Admin.Customer.Customer_Info" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
    <span class="action-span"><a href="Customer_List.aspx">
        <%=GetLangString("MenuCustomerList")%></a></span>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
    <%=GetLangString("CustomerInfo")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
    <div class="main-div">
        <table width="100%" id="general-table">
            <tr>
                <th class="label">
                    <%=GetLangString("CardCode")%>：
                </th>
                <td style=" position:relative;">
                    <asp:HiddenField ID="labCustomerID" runat="server" />
                    <asp:Label ID="labCardCode" runat="server" Text=""></asp:Label>
                    <input type="button"  value=' <%=GetLangString("fh")%>' onclick="history.go(-1)" style=" position: absolute; right:0px; bottom:0px " class="button"/>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("CustomerName")%>：
                </th>
                <td>
                    <ux:LanguagePic ID="LanguagePic1" runat="server" languageName="Chinese" />
                    <asp:Label ID="labCustomerName" runat="server" Text=""></asp:Label>
                    <ux:LanguagePic ID="LanguagePic2" runat="server" languageName="English" />
                    <asp:Label ID="labCustomerForeignName" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("ContactPerson")%>：
                </th>
                <td>
                    <asp:Label ID="labContactPerson" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Telephone")%>：
                </th>
                <td>
                    <asp:Label ID="labTelephone" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Mobile")%>：
                </th>
                <td>
                    <asp:Label ID="labMobile" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Fax")%>：
                </th>
                <td>
                    <asp:Label ID="labFax" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Region")%>：
                </th>
                <td>
                    <span style="font-weight: bold">
                        <%=GetLangString("Country")%>：</span>
                    <asp:Label ID="labCountry" runat="server" Text=""></asp:Label>
                    &nbsp; <span style="font-weight: bold">
                        <%=GetLangString("Province")%>：</span>
                    <asp:Label ID="labProvince" runat="server" Text=""></asp:Label>
                    &nbsp; <span style="font-weight: bold">
                        <%=GetLangString("City")%>：</span>
                    <asp:Label ID="labCity" runat="server" Text=""></asp:Label>
                    &nbsp; <span style="font-weight: bold">
                        <%=GetLangString("County")%>：</span>
                    <asp:Label ID="labCounty" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Address")%>：
                </th>
                <td>
                    <asp:Label ID="labAddress" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("CreditLimit")%>：
                </th>
                <td>
                    <asp:Label ID="labCreditLimit" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Currency")%>：
                </th>
                <td>
                    <asp:Label ID="labCurrency" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("CurrentAccountBalance")%>：
                </th>
                <td>
                    <asp:Label ID="labCurrentAccountBalance" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("ECOrdersBalance")%>：
                </th>
                <td>
                    <asp:Label ID="labECOrdersBalance" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("DiscountPercent")%>：
                </th>
                <td>
                    <asp:Label ID="labDiscountPercent" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("TaxClassName")%>：
                </th>
                <td>
                    <asp:Label ID="labTaxClassID" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("TaxRate")%>：
                </th>
                <td>
                    <asp:Label ID="labTaxRate" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Email")%>：
                </th>
                <td>
                    <asp:Label ID="labEmail" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Language")%>：
                </th>
                <td>
                    <asp:Label ID="labLanguageID" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("SalesPersonCode")%>：
                </th>
                <td>
                    <asp:Label ID="labSalesPersonCode" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("ShippingType")%>：
                </th>
                <td>
                    <asp:Label ID="labShippingType" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("ShipToDefault")%>：
                </th>
                <td>
                    <asp:Label ID="labShipToDefault" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("IsFrozen")%>：
                </th>
                <td>
                    <asp:Label ID="labFrozen" runat="server" Text=""></asp:Label>
                    <span style="color: Red">
                        <asp:Label ID="labFrozenRemarks" runat="server" Text=""></asp:Label></span>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("FrozenDate")%>：
                </th>
                <td>
                    <asp:Label ID="labFrozenFrom" runat="server" Text=""></asp:Label>
                    &nbsp;～
                    <asp:Label ID="labFrozenTo" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("IsValid")%>：
                </th>
                <td>
                    <asp:Label ID="labValid" runat="server" Text=""></asp:Label>
                    <span style="color: Red">
                        <asp:Label ID="labValidRemarks" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("ValidDate")%>：
                </th>
                <td>
                    <asp:Label ID="labValidFrom" runat="server" Text=""></asp:Label>
                    &nbsp;～
                    <asp:Label ID="labValidTo" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("CustomerNotes")%>：
                </th>
                <td>
                    <asp:Label ID="labNotes" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("CutomerDescription")%>：
                </th>
                <td>
                    <asp:Label ID="labDescription" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div class=" form-div">
        <%=GetLangString("SameCustomerList")%>：</div>
    <div class="list-div">
        <!--顾客的User地址列表-->
        <asp:GridView ID="grdUserAccountList" runat="server" AutoGenerateColumns="False"
            CssClass="grid">
            <Columns>
                <asp:BoundField SortExpression="UserName" DataField="UserName" />
                <asp:BoundField SortExpression="CustomerName" DataField="CustomerName" />
                <asp:BoundField SortExpression="RealName" DataField="RealName" />
                <asp:BoundField SortExpression="Phone" DataField="Phone" />
                <asp:BoundField SortExpression="RoleName" DataField="RoleName" />
            </Columns>
        </asp:GridView>
        <ux:AspNetPager ID="AspNetPager1" runat="server" Width="95%" ShowPageIndexBox="Always"
            HorizontalAlign="right" EnableTheming="true" AlwaysShow="true" PageIndexBoxType="DropDownList"
            OnPageChanged="AspNetPager1_PageChanged" ImagePath="/images/" NavigationButtonType="Image"
            ButtonImageNameExtension="n" CpiButtonImageNameExtension="r" PagingButtonType="Image">
        </ux:AspNetPager>
    </div>
    <br />
    <div class=" form-div">
        <%=GetLangString("BillAddress")%>：</div>
    <div class="list-div">
        <!--顾客的Bill地址列表-->
        <asp:GridView ID="grdBillList" runat="server" AutoGenerateColumns="False" CssClass="grid">
            <Columns>
                <asp:BoundField SortExpression="AddressCode" DataField="AddressCode" />
                <asp:BoundField SortExpression="Street" DataField="Street" />
                <asp:BoundField SortExpression="Block" DataField="Block" />
                <asp:BoundField SortExpression="ZipCode" DataField="ZipCode" />
                <asp:BoundField SortExpression="City" DataField="City" />
                <asp:BoundField SortExpression="County" DataField="County" />
                <asp:BoundField SortExpression="Country" DataField="Country" />
                <asp:BoundField SortExpression="State" DataField="State" />
                <asp:BoundField SortExpression="Building" DataField="Building" />
                
                  <asp:TemplateField>
                    <HeaderTemplate>
                        <%=GetLangString("Language")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("LanguageID").ToString()=="1"?"CN":"EN"%>
                    </ItemTemplate>
                </asp:TemplateField>
                
            </Columns>
        </asp:GridView>
    </div>
    <br />
    <div class=" form-div">
        <%=GetLangString("ShipAddress")%>：</div>
    <div class="list-div">
        <!--顾客的Ship地址列表-->
        <asp:GridView ID="grdShipList" runat="server" AutoGenerateColumns="False" CssClass="grid">
            <Columns>
                <asp:BoundField SortExpression="AddressCode" DataField="AddressCode" />
                <asp:BoundField SortExpression="Street" DataField="Street" />
                <asp:BoundField SortExpression="Block" DataField="Block" />
                <asp:BoundField SortExpression="ZipCode" DataField="ZipCode" />
                <asp:BoundField SortExpression="City" DataField="City" />
                <asp:BoundField SortExpression="County" DataField="County" />
                <asp:BoundField SortExpression="Country" DataField="Country" />
                <asp:BoundField SortExpression="State" DataField="State" />
                <asp:BoundField SortExpression="Building" DataField="Building" />
                
                      
                  <asp:TemplateField>
                    <HeaderTemplate>
                        <%=GetLangString("Language")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("LanguageID").ToString()=="1"?"CN":"EN"%>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    
     <br />
    <div class=" form-div">
        <%=GetLangString("ContactPerson")%>：</div>
    <div class="list-div">
        <!--顾客的Ship地址列表-->
        <asp:GridView ID="grdContactList" runat="server" AutoGenerateColumns="False" CssClass="grid">
            <Columns>
               <asp:BoundField SortExpression="CntctCode" DataField="CntctCode" />
                <asp:BoundField SortExpression="CardCode" DataField="CardCode" />
                <asp:BoundField SortExpression="Name" DataField="Name" />
                <asp:BoundField SortExpression="Telephone" DataField="Telephone" />
                <asp:BoundField SortExpression="Mobile" DataField="Mobile" />
                <asp:BoundField SortExpression="Fax" DataField="Fax" />
                <asp:BoundField SortExpression="Address" DataField="Address" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
